Method QueryRowsAsJsonAsync(string, object[], CancellationToken)

Assembly: redb.Postgres.dll

Execute SQL and serialize the result rows to a JSON array string in C# (column names from the reader),
NULL values included; "[]" when there are no rows. Behind RedbContextBase.QueryRowsAsJsonAsync.

public Task<string> QueryRowsAsJsonAsync(string sql, object[] parameters, CancellationToken cancellationToken)